package smallfrench.ui;

import java.awt.Color;

import javax.swing.text.SimpleAttributeSet;
import javax.swing.text.StyleConstants;

/**
 * Styles pour la coloration syntaxique
 * @author antoine1023
 */
public class Styles {

	public final static SimpleAttributeSet
	NORMAL = new SimpleAttributeSet(),
	CHAINE = new SimpleAttributeSet(),
	CLASSE_BIBLIO = new SimpleAttributeSet(),
	COMMENTAIRE = new SimpleAttributeSet(),
	MOT_CLE = new SimpleAttributeSet();

	static {

		CHAINE.addAttribute(StyleConstants.Foreground, Color.BLUE);

		CLASSE_BIBLIO.addAttribute(StyleConstants.Foreground,
				new Color(0, 150, 0));
		CLASSE_BIBLIO.addAttribute(StyleConstants.Bold,
				new Boolean(true));

		int coulCommentaire = 150;
		COMMENTAIRE.addAttribute(StyleConstants.Foreground,
				new Color(coulCommentaire, coulCommentaire, coulCommentaire));

		MOT_CLE.addAttribute(StyleConstants.Foreground,
				new Color(150, 31, 80));
		MOT_CLE.addAttribute(StyleConstants.Bold,
				new Boolean(true));
	}

}
